
#include <swarm.h>

int main(int argc, char **argv){

  sw_init(&argc, &argv);

  sw_swarm *sw = sw_load_swarm(argv[1]);
  if (!sw){
    printf("Error loading swarm file: %s\n", argv[1]);
    return 1;
  }
  /*
  int i = 0;
  for ( ; i < sw->swarm_size; i++){
    sw_print_insect(sw->swarm[i]);
  }
  */
  sw_init_display(&argc, &argv, sw->size.x, sw->size.y);
  sw_start_display();

  /* Display the swarm insects in their starting positions. */
  sw_display_swarm(sw);
  sw_flush_display();

  for (;;);

}
